import React from "react";
import {LocaleProvider, Messager} from "rc-easyui"
import BaseRouter from './router/index'
import {useAppStarter} from "@kordar/easyui-tpl";
import {alertMessagerRef, interactiveMessagerRef} from "@kordar/easyui";

function App() {

    const {easyuiLangPkg} = useAppStarter()

    return (
        <LocaleProvider locale={easyuiLangPkg?.value}>
            <React.Fragment>
                <BaseRouter />
                {/* messager */}
                <Messager ref={alertMessagerRef} />
                <Messager ref={interactiveMessagerRef} />
            </React.Fragment>
        </LocaleProvider>
    )
}

export default App
